package com.gxa.community.core.pojo.domain.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author juran
 * @since 2022-07-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("order_info")
@ApiModel(value = "OrderInfo对象", description = "订单信息表")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单号")
    private String nos;

    @ApiModelProperty("下单时间")
    private Long createTime;

    @ApiModelProperty("归属代理(团长)id")
    private Integer agentId;

    @ApiModelProperty("下单人id")
    private Integer buyerId;

    @ApiModelProperty("收货人名称")
    private String receiverName;

    @ApiModelProperty("收货人电话")
    private String receiverPhone;

    @ApiModelProperty("优惠券id(一次消费满100-10)")
    private Integer couponId;

    @ApiModelProperty("订单金额")
    private BigDecimal price;

    @ApiModelProperty("实付金额")
    private BigDecimal payment;

    @ApiModelProperty("订单类型")
    private Integer type;

    @ApiModelProperty("运单号 (多个订单被对应一个运单)")
    private String waybillNo;

    @ApiModelProperty("订单状态 	1待付款 2待取货 3已完成 0已取消")
    private Integer status;
}
